package com.infore.authorityManagement.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.infore.authorityManagement.entity.SysPermission;

public interface ISysPermissionRepository extends JpaRepository<SysPermission, String>,
    JpaSpecificationExecutor<SysPermission>{

    List<SysPermission> findByPermissionParentID(String permissionParentID);
    
    SysPermission findByPermissionIdNotAndPermissionName(String permissionId, String permissionName);
    
}
